package br.ufpe.cin.dsoa.handler.dependency;

import java.util.List;

import org.apache.felix.ipojo.FieldInterceptor;

import br.ufpe.cin.dsoa.common.Slo;

public class Dependency implements FieldInterceptor {

	private DependencyMetadata dsoaDependencyMetadata;
	private Object service;

	public Dependency(DependencyMetadata dsoaDependencyMetadata, List<Slo> slos) {
		this.dsoaDependencyMetadata = dsoaDependencyMetadata;
	}

	public void setService(Object service) {
		this.service = service;
	}

	public Object onGet(Object arg0, String arg1, Object arg2) {
		return service;
	}

	public void onSet(Object arg0, String arg1, Object arg2) {

	}

	public Class getSpecification() {
		return this.dsoaDependencyMetadata.getSpecification();
	}

	public List<Slo> getSlos() {
		return this.dsoaDependencyMetadata.getSlos();
	}

}
